<?php
if($this->data){
    foreach ($this->data as $chave => $valor) {
?>
    <option title="<?php echo $valor ?>" value="<?php echo $chave ?>"><?php echo $valor ?></option>
<?php          
    }
}else{
?>
    <option value="">Nenhum Professor encontrado.</option>
<?php 
    }
?>